import Vue from 'vue'

export default {
    fetch: () => Vue.http.get('get_addresss'),
    fetchOne: (address_id) => Vue.http.get('get_address', { address_id}),
    fetchDefault: () => Vue.http.get('get_default_address'),
    save: (address_id, address) => Vue.http.post('save_address', { address_id, address }),
    delete: (address_id) => Vue.http.delete('delete_address', { address_id }),
    choose: (address_id) => Vue.http.post('choose_address', { address_id }),
}
